import * as yup from 'yup';

yup.setLocale({
  mixed: {
    required: '${label}必须输入',
  },
  string: {
    email: '邮箱格式错误',
    min: '${label}长度不能小于${min}位',
    length: '${label}长度必须是${length}位',
  },
});
export default yup;
